package cn.client.ui.components

import android.widget.Toast
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import cn.client.ui.view.signIn.SignInViewModel
import kotlinx.coroutines.launch

// 提交按钮
@Composable
fun SubmitButton(
    onClickSubmitButton:()->Unit,
    text: String = "提 交"
){
    /* 完成 */
    Button(
        modifier = Modifier
            .fillMaxWidth()
            .padding(10.dp),
        onClick = {
            // 发送意图
            onClickSubmitButton()
        }) {
        Text(
            text = text,
            modifier = Modifier.fillMaxWidth(),
            textAlign = TextAlign.Center
        )
    }
}